#include "APP_display.h"

//初始化屏幕
void APP_Display_Init(void){
    Int_OLED_Init();
    Int_OLED_Clear();
}

//清屏
void APP_Display_Clear(void){
    Int_OLED_Clear();
}

//显示数据(CO2, 温度, 湿度)
void APP_Display_Show(uint16_t co2, uint16_t temp, uint16_t humi){
    Int_OLED_DisplayString("CO2:",0,0);
    Int_OLED_DisplayDouble(co2  ,6,0);
    Int_OLED_DisplayString("Temp:",0,1);
    Int_OLED_DisplayDouble(temp   ,6,1);
    Int_OLED_DisplayString("Humi:",0,2);
    Int_OLED_DisplayDouble(humi   ,6,2);
}

